package collection;

import java.util.*;

public class Test2 {
    public static void main(String[] args) {
        List<Integer> list=new ArrayList<>();
        Random ran=new Random();
        for(int i=0;i<10;i++)
            list.add(ran.nextInt(100));
        Collections.sort(list,new Comparator<Integer>(){
            public int compare(Integer a,Integer b){
                return b-a;
            }
        });
    }
}
